<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2023-01-10
 * Time: 19:56
 */

namespace App\model\user;
use think\Model;

class UserRoles extends Model
{
    // 设置字段信息
    protected $schema = [
        'permissions'       => 'json'
    ];
    public function user()
    {
        return $this->belongsToMany(UserAdmins::class, AdminRoles::class);
    }
}